import request from '@/utils/request'

export function modify(data) {
  return request({
    url: 'api/proType/save',
    method: 'post',
    data
  })
}

export function get(id) {
  return request({
    url: 'api/proType/'+id,
    method: 'get'
  })
}

export function updateEnabled(id) {
  return request({
    url: 'api/proType/'+id,
    method: 'delete'
  })
}

export function pageList(data) {
  return request({
    url: 'api/proType/pagelist',
    method: 'post',
    data
  })
}

export default {
  modify,
  get,
  updateEnabled,
  pageList
}
